package com.ccb.jyzx.expand.ouapi.dao.ouapi;

import com.ccb.jyzx.expand.ouapi.beans.DepartmentInfo;
import com.ccb.jyzx.expand.ouapi.beans.sync.DepartmentInfoSync;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author XIEFEI
 * @date 2019-11-12 9:19
 * @Description
 **/
public interface DepartmentDao {
    DepartmentInfo getById(@Param("id") String id);

    List<DepartmentInfo> getAll();

    List<DepartmentInfo> getByOrgId(@Param("orgId")String orgId);

    List<DepartmentInfoSync> getAllSync();

    void save(DepartmentInfoSync departmentInfoSync);

    void update(DepartmentInfoSync departmentInfoSync);

    void deleteById(@Param("id")String id);
}
